"use client";
import styles from "./img.module.scss";

interface ImgProps {
  src: string;
  alt: string; // 图片描述
  width?: number;
  height?: number;
}

export default function Img({ src, alt, width = 100, height = 100 }: ImgProps) {
  return (
    <div className={styles.img}>
      <img
        src={src}
        alt={alt}
        width={width}
        height={height}
        suppressHydrationWarning={true}
      />
    </div>
  );
}
